package cn.boysoft.core.server.netty.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import cn.boysoft.core.model.message.Response;
import cn.boysoft.core.model.message.json.JSONResponse;
import cn.boysoft.core.server.netty.codec.RequestHandler;

/**
 * @author 付厚俊
 * CreateTime 2013-4-4 下午5:22:47
 */

@Service(value="jsonRequestHandler")
public class JsonRequestHandler extends RequestHandler<JSONResponse>{
	private final static Logger LOGGER = LoggerFactory.getLogger(JsonRequestHandler.class);
	@Override
	public JSONResponse buildReponse(Response<Object> r) {
		JSONResponse response = new JSONResponse(r);
		return response;
	}
}
